From:
Http://hi.baidu.com/dbzhang800/item/14d738cf9a24513d45941642
I personally tested it in 20130511. Thanks to the original author.
20110815 update: Some netizens mentioned simply adding an environment variable lang = en. See qtcn.org
Since the built-in mingw4.4 of qtcreator is installed and the C ++ program is compiled, garbled characters are displayed:
E: \ cpp_t> C ++-wall B. cppB. cpp: In function compute using NT main () using?B. cpp: 22B. cpp
("ARGV = "${ARGV}) set(INDEX 0) while(INDEX LESS ${ARGC})message("ARG = "${ARGV${INDEX}})math(EXPR INDEX "${INDEX} + 1")endwhile()endfunction()
Arg = A. cpparg = B. cpparg = C. cpparg = D. cpp
Of course, you can also use the foreach loop traversal parameter of cmake. This method is very effective when there is only one list parameter, but multiple parameters appear, as follows:
# Assume that the function link_lib links the source files in the src_list to a library and determines w
)
ARGC = 5
ARGV = a. cppb. cppc. cppd. cppso
Originally, ARG mixed the two parameters. Although we used while for special processing later, it was not universal for the cmake function and it was very troublesome to transplant it.
The final version of solution uses cmake's cmake_parse_arguments to parse function parameters. It is a bit like parsing a map key-value pair. First, let's look at its function prototype:
Include (CMakeParseArguments) #
not, so the following commands are executed at the end and execute the following command in Xshell:b.1 Yum Install CPPb.2 Yum Install binutilsb.3 Yum Install glibc-kernheadersb.4 Yum Install Glibc-commonb.5 Yum Install glibc-develb.6 Yum Install gccb.7 Yum Install makeNote: All of the above package information will be prompted when the installation is complete, if it is not completed, but nothing to do, then the server has installed this package, do
some characters and hit enter to select the first file in the listb) C-s left shift c-r right shift. or left and RIGHT arrow keys, you can move in the file listc) Tab support Auto-completeD) Backspace key parent Directorye)//root directoryf) ~/home directoryg) c-f Returns a file mode with no Ido mode c-b return bufferh) c-d into the cataloguej) c-j Create a new fileLimit what the list displays:A) Enter a name such as. cppb) [email protected]D) The ab
packageInstallation of 3.GCCA. With the above preparation, we now have an environment that can be installed and released, and if not, check the installation yourself.B. Install gcc under CentOS, we install with Yum (Package manager) because GCC relies on a lot of things, and some package systems may already be installed, some of them are not, so the following commands are executed at the end and execute the following command in Xshell:b.1 Yum Install CPPb
not, so the following commands are executed at the end and execute the following command in Xshell:b.1 Yum Install CPPb.2 Yum Install binutilsb.3 Yum Install glibc-kernheadersb.4 Yum Install Glibc-commonb.5 Yum Install glibc-develb.6 Yum Install gccb.7 Yum Install makeNote: All of the above package information will be prompted when the installation is complete, if it is not completed, but nothing to do, then the server has installed this package, do
allocation ABC: Target-actual job allocation
Cpmb ABC: Plan reconciliation ABC: Plan re-adjustment
CPMN Activity-Based Costing menu job-based cost menu
Cpp1 create actual assess. For processes create a practical evaluation for processing
Cpp2 change actual assess. For processes modify the actual service allocation
Cpp3 display actual assess. For processes display the actual service allocation
Cpp4 delete actual assess. For processes Delete the actual allocation of services
Cpp5 execute actual a
is a shell file and cannot be used to replace its content multiple times, this is really a good question. In fact, this is what we will talk about next. Calc: calc. o calcmain. o can I reduce the maintenance workload if I use variables in the subsequent target files? Can I replace the executable files with variables? The two problems are solved now, the new Makefile is as follows:
EXE=calcOBJECTS=calcmain.o calc.o $(EXE):$(OBJECTS) gcc -Wall $^ -o $EXEcalcmain.o:calcmain.c gcc -Wall
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.